package com.cb.domain.service.system.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cb.core.service.impl.GenericManagerImpl;
import com.cb.domain.model.system.SystemUser;
import com.cb.domain.model.user.UserAccount;
import com.cb.domain.dao.system.AppResourceDAO;
import com.cb.domain.dao.system.SystemUserDAO;
import com.cb.domain.service.system.SystemUserManager;
import com.cb.core.webapp.paging.PagingBean;

@Service
public class SystemUserManagerImpl extends GenericManagerImpl<SystemUser, Long> implements SystemUserManager{
	
	@Autowired
	private SystemUserDAO systemUserDAO;
	
	@Autowired
	public SystemUserManagerImpl(SystemUserDAO SystemUserDAO) {
		super(SystemUserDAO);
	}
	
	/**
	 * {@inheritDoc}
	 */
	public List<SystemUser>getByVo(SystemUser vo,PagingBean pb){
		return ((SystemUserDAO)genericDAO).getByVo(vo, pb);
	}

	@Override
	public SystemUser findByUserName(String userName) {
			return systemUserDAO.findByUserName(userName);
	}
}
